package com.wuyangnju.healthclub.service;

import java.util.List;

import javax.annotation.Resource;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.wuyangnju.healthclub.dao.BankcardItemDao;
import com.wuyangnju.healthclub.entity.BankcardItem;

@Component
public class BankcardItemService {

	@PersistenceContext
	protected EntityManager em;

	@Resource
	private BankcardItemDao bankcardItemDao;

	@Transactional
	public List<BankcardItem> get() {
		return bankcardItemDao.retrieve(em);
	}

}
